export default [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    name: 'Home',
    component: () => import('../components/Home/index.vue'),
    children: [
      {
        path: 'news',
        name: 'News',
        component: () => import('../components/Home/News/index.vue'),
        children: [
          {
            path: '/home/news/item/:id/:name',
            name: 'NewsItem',
            component: () => import('../components/Home/News/Item/index.vue')
          }
        ]
      },
      {
        path: 'play',
        name: 'Play',
        component: () => import('../components/Home/Play/index.vue'),
      },
    ]
  },
  {
    path: '/login',
    name: 'Login',
    component: () => import('../components/Login/index.vue')
  },
  {
    path: '/404',
    name: '404',
    component: () => import('../components/404/index.vue')
  },
  {
    path: '/:pathMatch(.*)*',
    redirect: '/404'
  }

]